package com.fauks.se.design_mode.代理模式.static_proxy;

/**
 * 静态代理：必须有一个代理对象此处为SomeServiceProxy
 */
public class StaticProxy {
    public static void main(String[] args) {
        //使用代理对象
        ISomeService someService = new SomeServiceProxy(new SomeServiceImpl());
        String s = someService.doFirst();
        System.out.println(s);
        someService.doLast();
    }
}
